package io.mft.as.ar.gateway.constants;

/**
 * 描述: 
 * 版权: Copyright (c) 2012 
 * 公司: 思迪信息
 * 作者: 李炜
 * 版本: 1.0 
 * 创建日期: Apr 16, 2014 
 * 创建时间: 10:43:59 AM
 */
public final class GatewayConstants
{
    
    /**
     * BusConfig.xml中版本号节点名
     */
    public final static String BUS_CONFIG_FIELD_VERSION           = "version";
    
    /**
     * BusConfig.xml中网关地址，多个用|分隔
     */
    public final static String BUS_CONFIG_FIELD_GATEWAY           = "gateway";
    
    /**
     * BusConfig.xml中连接池大小节点名
     */
    public final static String BUS_CONFIG_FIELD_POOLSIZE          = "poolSize";
    
    /**
     * BusConfig.xml中轮询方式节点名
     */
    public final static String BUS_CONFIG_FIELD_LBMODE            = "LBMode";
    
    /**
     * BusConfig.xml中状态扫描间隔时间节点名
     */
    public final static String BUS_CONFIG_FIELD_SCANINTERVAL      = "scanInterval";
    
	/**
	 * BusConfig.xml中状态扫描可用连接存活时间配置
	 */
    public final static String BUS_CONFIG_FIELD_SCANALIVEINTERVAL = "scanAliveInterval";
    
    /**
     * BusConfig.xml中状态扫描線程間隔時間
     */
    public final static String BUS_CONFIG_FIELD_CHECKPOOLEXPIRED = "checkPoolExpired";
    
    /**
     * BusConfig.xml中状态扫描服务器类型 socket or http or https
     */
    public final static String BUS_CONFIG_FIELD_SCANSERVERTYPE    = "scanServerType";
    
    /**
     * BusConfig.xml中http服务器监控地址
     */
    public final static String BUS_CONFIG_FIELD_HTTPSCANADDR      = "httpScanAddr";
    
    /**
     * BusConfig.xml中http服务器接口请求地址
     */
    public final static String BUS_CONFIG_FIELD_HTTPREQUESTADDR   = "httpRequestAddr";
    
    /**
     * BusConfig.xml中后端服务器的连接模式节点名
     */
    public final static String BUS_CONFIG_FIELD_MODE              = "Mode";
    
    /**
     * BusConfig.xml中请求超时时间节点名
     */
    public final static String BUS_CONFIG_FIELD_RECVTIMEOUT       = "recvTimeout";
    
    /**
     * BusConfig.xml中加解密key节点名
     */
    public final static String BUS_CONFIG_FIELD_KEY               = "key";
    
    /**
     * 随机模式
     */
    public final static int    LBMODE_RANDOM                      = 0;
    
    /**
     * 顺序模式
     */
    public final static int    LBMODE_LOOP                        = 1;
    
    /**
     * 主备模式
     */
    public final static int    LBMODE_BACKUPS                     = 2;
    
    /**
     * 当前页字段名称
     */
    public final static String FIELD_CURR_PAGE                    = "curr_page";
    
    /**
     * 一页显示的记录数字段名称
     */
    public final static String FIELD_PAGE_COUNT                   = "page_count";
    
    /**
     * 总记录数字段名称
     */
    public final static String FIELD_TOTAL_ROWS                   = "total_rows";
    
    /**
     * 连接模式：长连接
     */
    public final static int    INVOKE_MODE_LONG                   = 1;
    
    /**
     * 扫描服务器类型:SOCKET
     */
    public final static String SCAN_SERVERTYPE_SOCKET             = "socket";
    
    /**
     * 扫描服务器类型：http
     */
    public final static String SCAN_SERVERTYPE_HTTP               = "http";
    
    /**
     * 扫描服务器类型：https
     */
    public final static String SCAN_SERVERTYPE_HTTPS              = "https";
    
    public final static String AR_DATASOURCE_ID              = "job_executor";
    
    public final static String SYSNO="Sar";
}
